package com.iengoo.inductionms.mapper;

import com.iengoo.inductionms.entity.Employee;
import com.iengoo.inductionms.entity.User;
import com.iengoo.inductionms.model.Condition;
import org.apache.ibatis.annotations.Select;

import javax.xml.ws.Service;
import java.util.List;

public interface EmployeeMapper {

    int insert(Employee record);
    //新增账号(填写9个基本信息)
    int insertSelective(Employee record);
    //查询资料报道完成而没有进行信息录入的员工
    List<Employee> findAll();
    List<Employee> query(Condition condition);
    //修改员工信息
    User updatePassword(Employee employee);
    //根据用户名查找是否有对应账号
    Employee findByUsername(String username);


    //根据员工id删除(冻结)员工,将员工的状态改为2;
    void frozenAccounts(Employee employee);

    //录入员工信息,根据员工输入数据进行修改
    void updateInformation(Employee employee);

    //资料报道页面修改员工基本信息
    void update(Employee employee);

    List<Employee> queryByEmployeeId(String employeeId);

    @Select("select * from employee where id=#{id}")
    Employee findById(int id);
}